package com.bestcem.xm.award.controller.param.point;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 积分奖励，领取返回
 *
 * @author xa.zhang <xa.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/14 15:14
 */
@Data
public class BandPointDrawParam {

    @NotBlank(message = "requestId不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "requestId格式错误")
    @JsonProperty("request_id")
    private String requestId;
    @NotBlank(message = "awardId不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励id格式错误")
    @JsonProperty("award_id")
    private String awardId;
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "(1[3-9][0-9])[0-9]{8}", message = "抽奖手机号格式错误")
    private String phone;


}
